Skip to content

fix: Add WithMessageBus and TaskPool schedulers with RxAppBuilder#4282

Merged
ChrisPulman merged 2 commits intomainfrom
UpdateFeaturesResolveTaskScheduler
Jan 31, 2026
Merged

fix: Add WithMessageBus and TaskPool schedulers with RxAppBuilder#4282
ChrisPulman merged 2 commits intomainfrom
UpdateFeaturesResolveTaskScheduler

Conversation

@ChrisPulman
Copy link
Member

What kind of change does this PR introduce?

Update

What is the current behavior?

TaskPoolScheduler is null when using platform builder extensions i.e. WithWpf()
Schedulers were set in Registrations

What is the new behavior?

Introduce a unified WithMessageBus API (WithMessageBus(), WithMessageBus(IMessageBus), WithMessageBus(Action)) and implement message-bus registration in ReactiveUIBuilder. Add RegisterConstantViewModel() to register constant VM instances. Configure TaskPoolScheduler.Default via WithTaskPoolScheduler in multiple platform builder extensions (AndroidX, Blazor, Maui, WinUI, WinForms, WPF) instead of platform registration files. Remove direct RxSchedulers assignments from several platform Registrations to centralize scheduler setup. Update mixins, tests, examples and project files to use the new APIs and clean up minor issues (usings, default expressions, project metadata, and API approval baselines).

What might this PR break?

currently beta edition, ConfigureMessageBus is now WithMessageBus in all cases

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Introduce a unified WithMessageBus API (WithMessageBus(), WithMessageBus(IMessageBus), WithMessageBus(Action<IMessageBus>)) and implement message-bus registration in ReactiveUIBuilder. Add RegisterConstantViewModel<TViewModel>() to register constant VM instances. Configure TaskPoolScheduler.Default via WithTaskPoolScheduler in multiple platform builder extensions (AndroidX, Blazor, Maui, WinUI, WinForms, WPF) instead of platform registration files. Remove direct RxSchedulers assignments from several platform Registrations to centralize scheduler setup. Update mixins, tests, examples and project files to use the new APIs and clean up minor issues (usings, default expressions, project metadata, and API approval baselines).
Replace occurrences of Services.RoomEventMessage with the unqualified RoomEventMessage in LobbyViewModel. Updates message listening, sync request/response creation, ApplyRoomEvent signature, and broadcast events for room create/delete to use the shorter type name.
@glennawatson glennawatson changed the title Add WithMessageBus and TaskPool schedulers fix: Add WithMessageBus and TaskPool schedulers with RxAppBuilder Jan 31, 2026
@ChrisPulman ChrisPulman enabled auto-merge (squash) January 31, 2026 23:04
@ChrisPulman ChrisPulman merged commit 10ebe5d into main Jan 31, 2026
4 checks passed
@ChrisPulman ChrisPulman deleted the UpdateFeaturesResolveTaskScheduler branch January 31, 2026 23:06
@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

❌ Patch coverage is 41.37931% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.65%. Comparing base (f4d5e40) to head (6943679).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ReactiveUI/Builder/ReactiveUIBuilder.cs 45.45% 6 Missing ⚠️
src/ReactiveUI/Mixins/BuilderMixins.cs 14.28% 6 Missing ⚠️
...lazor/Builder/BlazorReactiveUIBuilderExtensions.cs 28.57% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4282      +/-   ##
==========================================
- Coverage   89.78%   89.65%   -0.14%     
==========================================
  Files         251      251              
  Lines        9559     9574      +15     
  Branches     1456     1454       -2     
==========================================
+ Hits         8583     8584       +1     
- Misses        741      756      +15     
+ Partials      235      234       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants